Primitive Class Flow.Starfield

Represents a star field in the sky.

To be used with Flow.Level.starfield property.

Members

starCount (int) Amount of visible stars.
meteorCount (int) Amount of visible meteors.
meteorSpawnDensity (int) Meteor spawn density.
meteorVelocity (int) Meteor velocity.

Functions

Starfield(starCount) Create a starfield object with only stars.
Starfield(starCount, meteorCount, meteorSpawnDensity, meteorVel) Create a starfield object with stars and meteors.


Members

starCount
(int) Amount of visible stars.
meteorCount
(int) Amount of visible meteors.
meteorSpawnDensity
(int) Meteor spawn density.
meteorVelocity
(int) Meteor velocity.

Functions

Starfield(starCount)
Create a starfield object with only stars.

Parameters:

  • starCount int Star count.

Returns:

    Starfield A new Starfield object.
Starfield(starCount, meteorCount, meteorSpawnDensity, meteorVel)
Create a starfield object with stars and meteors.

Parameters:

  • starCount int Star count. Max: 6000
  • meteorCount int Meteor count. Max: 100
  • meteorSpawnDensity int Meteor spawn density.
  • meteorVel int Meteor velocity.

Returns:

    StarField A new Starfield object.
generated by TEN-LDoc (a fork of LDoc 1.4.6)